package com.example.springsecurity.mapper;

import com.example.springsecurity.domain.NoticeUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName NoticeUserMapper
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-09-28 16:56
 **/
@Mapper
public interface NoticeUserMapper {

    /**
     * 添加用户通知关联表
     * @param noticeId  通知id
     * @param userIds 用户id
     * @return
     */
    public boolean insertNoticeUser(@Param("noticeId") Long noticeId,@Param("userIds") List<Long> userIds);

    /**
     * 根据通知id删除通知用户关联表信息
     * @param noticeIds
     * @return
     */
    public boolean deleteNoticeUser(@Param("noticeIds") Long[] noticeIds);
}
